Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quadrants options #3

Merged
merged 3 commits into from
May 21, 2021
Merged

Conversation

clementdevos
Copy link
Contributor

@clementdevos clementdevos commented Dec 3, 2020

Hi,

While integrating this to our project, we found it was a bit clutered
I've added 3 "quadrantOptions" to give some space

  • textMargin : override the ring text margin
  • textYOffset : add an offset to the dy Text of the ring label
  • showOnlyFirstQuadrantLabels : only show the labels on the first quadrant

I've also added a margin props to override the const in the component

Let me know what you think.
This is only a draft of what could be a more advanced customization feature.

Also do you think this project could benefit from typescript definitions ? (rewrite?)

updated babel
updated storybook to 6 (without changing the config)
added babel for optional chaining and nullish coaelscing operator
Copy link
Owner

@omerg omerg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks @clementdevos !

@omerg omerg merged commit 40f0ed7 into omerg:master May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants